// 微信支付
export function wxPay(param) {
    return new Promise((resolve, reject) => {
        wx.requestPayment({
            'timeStamp': param.obj.timeStamp,
            'nonceStr': param.obj.nonceStr,
            'package': param.obj.package,
            'signType': 'MD5',
            'paySign': param.obj.paySign,
            'success': function (res) {
                console.log(res);
                resolve(res)
            },
            'fail': function (res) {
                reject(res)
            }
        })
    });
}